-- GENERATED SPELL FOR [Warpwood Shredder] --


function spell0_7101(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(13444,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7101', 30325, 1)
end

function spell1_7101(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_7101', 545, 1)
end

function Sorts_7101(pUnit, Event)
local choix_sorts_7101 = math.random(0, 1)
if choix_sorts_7101 == 0 then
pUnit:RegisterEvent('spell0_7101', 1, 1)
end
if choix_sorts_7101 == 1 then
pUnit:RegisterEvent('spell1_7101', 1, 1)
end
end

function mob7101_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7101', math.random(1500, 3000), 1)
end

function mob7101_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7101_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7101_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7101, 1, 'mob7101_Action')
RegisterUnitEvent(7101, 2, 'mob7101_Leave')
RegisterUnitEvent(7101, 3, 'mob7101_Kill')
RegisterUnitEvent(7101, 4, 'mob7101_Die')
